//
//  ShowQRWindowController.m
//  HandyQR
//
//  Created by cry on 2017/8/29.
//  Copyright © 2017年 cry. All rights reserved.
//

#import "ShowQRWindowController.h"
#import "NSImage+MDQRCode.h"

@interface ShowQRWindowController ()<NSWindowDelegate>

@property (weak) IBOutlet NSImageView *imageView;

@end

@implementation ShowQRWindowController

- (void)windowDidLoad {
    [super windowDidLoad];
    
    [self.window center];
    self.window.delegate = self;
    self.window.titleVisibility = NSWindowTitleHidden;
    self.window.titlebarAppearsTransparent = YES;
    _imageView.image = [NSImage mdQRCodeForString:_qrString size:200];
}

- (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)frameSize{
    
    return CGSizeMake(220, 220);
}

@end
